import App from './App'
import store from './store'
import common from "./utils/common.js"; //公共js
import empty from "component/empty/index.vue"
import loadMore from "component/loadMore/index.vue"
import easyLoadimage from "component/easyLoadimage.vue"
import customHeader from "component/customHeader/index.vue"
import centerPop from "component/centerPop/index.vue"
import dialog from "component/centerPop/dialog.vue"
import uView from '@/uni_modules/uview-ui'
Vue.prototype.$store = store;
Vue.prototype.$commonjs = common;
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.component('empty', empty)
Vue.component('easyLoadimage', easyLoadimage)
Vue.component('customHeader', customHeader)
Vue.component('loadMore', loadMore)
Vue.component('centerPop', centerPop)
Vue.component('dialogPop', dialog)
Vue.use(uView)
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif